package com.godofball.medtrack.pojo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;

import java.math.BigDecimal;
import java.util.Date;

/**
* 进货单详情
* @TableName purchase_detail
*/
@Data
public class PurchaseDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private Long adminId;

    private Long purchaseId;

    private Long drugId;
    /**
    * 进货单价
    */
    private BigDecimal purchasePrice;
    /**
    * 进货数量
    */
    private Integer purchaseCount;
    /**
    * 单个药品进货总价
    */
    private BigDecimal totalPrice;
    /**
    * 生产日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date produceDate;
    /**
    * 有效日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date effectiveDate;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
